package com.care.modules.news.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.care.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 资讯新闻
 * @Author: jeecg-boot
 * @Date:   2023-05-10
 * @Version: V1.0
 */
@Data
@TableName("tb_news")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="tb_news对象", description="资讯新闻")
public class News {
    
	/**新闻ID*/
	@TableId(type = IdType.ASSIGN_ID)
	@Excel(name = "新闻ID", width = 15)
    @ApiModelProperty(value = "新闻ID")
	private java.lang.String id;
	/**标题*/
	@Excel(name = "标题", width = 15)
    @ApiModelProperty(value = "标题")
	private java.lang.String title;
	/**内容*/
	@Excel(name = "内容", width = 15)
    @ApiModelProperty(value = "内容")
	private java.lang.Object content;
	/**封面*/
	@Excel(name = "封面", width = 15)
    @ApiModelProperty(value = "封面")
	private java.lang.String imgUrl;
	/**是否置顶(0-置顶 1-置顶)*/
	@Excel(name = "是否置顶(0-置顶 1-置顶)", width = 15)
    @ApiModelProperty(value = "是否置顶(0-置顶 1-置顶)")
	@Dict(dicCode = "yes_no")
	private java.lang.Integer isTop;
	/**是否banner(0-不是banner 1-是banner)*/
	@Excel(name = "是否banner(0-不是banner 1-是banner)", width = 15)
    @ApiModelProperty(value = "是否banner(0-不是banner 1-是banner)")
	@Dict(dicCode = "yes_no")
	private java.lang.Integer isBanner;
	/**分类ID*/
	@Excel(name = "分类ID", width = 15)
    @ApiModelProperty(value = "分类ID")
	private java.lang.Integer categoryId;
	/**分类名称*/
	@Excel(name = "分类名称", width = 15)
    @ApiModelProperty(value = "分类名称")
	private java.lang.String categoryName;
	/**新闻状态（0-未发布，1-已发布）*/
	@Excel(name = "新闻状态（0-未发布，1-已发布）", width = 15)
    @ApiModelProperty(value = "新闻状态（0-未发布，1-已发布）")
	@Dict(dicCode = "send_status")
	private java.lang.Integer status;
	/**作者*/
	@Excel(name = "作者", width = 15)
    @ApiModelProperty(value = "作者")
	private java.lang.String author;
	/**删除标志（0代表存在 2代表删除）*/
	@Excel(name = "删除标志（0代表存在 2代表删除）", width = 15)
    @ApiModelProperty(value = "删除标志（0代表存在 2代表删除）")
	private java.lang.String delFlag;
	/**创建者*/
	@Excel(name = "创建者", width = 15)
    @ApiModelProperty(value = "创建者")
	private java.lang.String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private java.util.Date createTime;
	/**更新者*/
	@Excel(name = "更新者", width = 15)
    @ApiModelProperty(value = "更新者")
	private java.lang.String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private java.util.Date updateTime;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
	private java.lang.String remark;

	@ApiModelProperty(value = "所属机构")
	private java.lang.String sysOrgCode;
}
